<?php
/** 
*/
$root = dirname(__FILE__);
$key = 'qdorder';
require_once $root.'/config.php';
require_once $root.'/mpdo/Log.class.php';
$redis = redis_cluster::getInstance();
$orderNo = $redis->lpop($key);
$Log = new Log();

if(empty($orderNo)){
	sleep(10);exit;
}
$param = [];
$param['orderNo'] = $orderNo;
$params = json_encode($param);
$header = array('Content-Type: application/json; charset=utf-8','Content-Length:' . strlen($params));
$res = curlData('https://bdbdev.chbcplus.com/open/bwc/OrderAction/completeOrder',$params,$header);
usleep(200000);
?>
